package com.hoozhi.education.action;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hoozhi.education.dao.EduUserDao;
import com.hoozhi.education.entity.EduUser;
@Controller
public class UserAct {
	
	@Autowired
	private EduUserDao eduUserDao;
	
	//打印用戶的姓名
	@RequestMapping("/user")
	public String execute(ModelMap modelMap, Date mydate){
		
		List<EduUser> userList = eduUserDao.fingAll();
		modelMap.put("userList", userList);
		
		System.out.println("用户的姓名为 pharen" + mydate);
		modelMap.put("mydate", mydate);
		return "hello";
	}

}
